http://www.wavecom.com/forum

Release version:
3.04

Sample - IPConnect Library

Changes

Dependencies

This sample depends on the following libraries :

Library Description

This IP Connect sample ADL Library provides TCPIP library configuration commands, and APIs to connect and process FTP tranfers.

AT commands parameters are stored in FLASH memory. For more details on parameters, please refer to the TCPIP library documentation.

The commands are defined below :

 

  AT+IPGPRS (GPRS parameters for IP connection setup)
CommandAnswers
AT+IPGPRS?+IPGPRS: <Cid> , <APN> , <UN> , <PW>
OK
AT+IPGPRS=?+IPGPRS: (1-4) , (100) , (50) , (50)
OK
AT+IPGPRS= <Cid> , <APN> , <UN> , <PW> +CME ERROR: 3
or
OK
 
ParameterValues rangeDescriptionDefault value
Cid1-4Context ID1
APN100Operator APNNA
UN50User NameNA
PW50PasswordNA

 

  AT+IPGSM (GSM parameters for IP connection setup)
CommandAnswers
AT+IPGSM?+IPGSM: <DialNB> , <DialNB1> , <DialNB2> , <UN> , <PW> , <RedialCount> , <RedialDelay> , <Timeout>
OK
AT+IPGSM=?+IPGSM: (1-2) , (64) , (64) , (64) , (64) , (0-255) , (0-255) , (0-255)
OK
AT+IPGSM= <DialNB> , <DialNB1> , <DialNB2> , <UN> , <PW> , <RedialCount> , <RedialDelay> , <Timeout> +CME ERROR: 3
or
OK
 
ParameterValues rangeDescriptionDefault value
DialNB1-2Used dial numberNA
DialNB164Dial Number 1NA
DialNB264Dial Number 2NA
UN64User NameNA
PW64PasswordNA
RedialCount0-255Redial triesNA
RedialDelay0-255Delay between redialsNA
Timeout0-255Connection inactivity timeoutNA

 

  AT+IPFTP (FTP server parameters setup)
CommandAnswers
AT+IPFTP?+IPFTP: <Port> , <Type> , <Server> , <UN> , <PW>
OK
AT+IPFTP=?+IPFTP: (0-65535) , ("A","I") , (120) , (64) , (64)
OK
AT+IPFTP= <Port> , <Type> , <Server> , <UN> , <PW> +CME ERROR: 3
or
OK
 
ParameterValues rangeDescriptionDefault value
Port0-65535TCP Port on serverNA
Type"A","I"Text or binary typeNA
Server120Server addressNA
UN64User NameNA
PW64PasswordNA

 

  AT+IPCONNECT (Connection start/stop command)
CommandAnswers
AT+IPCONNECT?+IPCONNECT: <Bearer> , <Connect>
OK
AT+IPCONNECT=?+IPCONNECT: (0-1) , (0-1)
OK
AT+IPCONNECT= <Bearer> , <Connect> +CME ERROR: 3
or
OK
 
ParameterValues rangeDescriptionDefault value
Bearer0-10 for GSM bearer
1 for GPRS bearer
NA
Connect0-10 to stop connection
1 to start connection
NA

 

Library API

All constants and APIs are defined by the ipconnect.h header file, which must be included by any application to allows it to use the IPConnect Library.

The library will need the global variable bellow on link operation, to define the trace level on which will be displayed the IPConnect traces :

Any application which links with the IPConnect Library have to use the TCPIP Add-on Library.

The IPConnect APIs are defined bellow :

  ip_Subscribe
 This API can be used to subscribe to IPConnect library.   ip_Unsubscribe
 This API can be used to unsubscribe from IPConnect library.   ip_Connect
 This API can be used to start/stop IP connection.   ip_FTPSet
 This API can be used to set the FTP server parameters.   ip_FTPGet
 This API can be used to get a file from the FTP server.   ip_FTPPut
 This API can be used to put a file on the FTP server.

Updated : Thu Apr 27 14:12:36 CEST 2006